import Vue from "vue"
import App from "./App"

import store from "./store"

Vue.config.productionTip = false

Vue.prototype.$store = store

// 引入全局uView
import uView from "uview-ui"
Vue.use(uView)

// 引入uView对小程序分享的mixin封装
let mpShare = require("uview-ui/libs/mixin/mpShare.js")
Vue.mixin(mpShare)

// 注册全局过滤器
import * as filters from "./filters" // global filters
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})

App.mpType = "app"

const app = new Vue({
  store,
  ...App,
})
app.$mount()
